// Commands

Assault.Commands = {}

// Load

function Assault.Commands.Load(Player, Command, Args)
	local Level = table.concat(Args, " ")
	
	// Check
	
	local Check = Assault.Level.Load(Level)
	
	// Message
	
	if (!Check) then
		Assault.Game.Print("The level '"..Level.."' does not exist!")
	end
end

concommand.Add("assault_load", Assault.Commands.Load)

// Quit

function Assault.Commands.Quit(Player, Command, Args)
	// Check
	
	local Check = Assault.Level.Destroy()
	
	// Message
	
	if (!Check) then
		Assault.Game.Print("You do not have a level loaded!")
	end
end

concommand.Add("assault_quit", Assault.Commands.Quit)